package com.zjw.demo.vertx.starter.template.bean;

import io.vertx.core.json.JsonObject;

import java.io.Serializable;

public abstract class AbsResponse implements Serializable {

  public String code;
  public String result;
  public String message;


  public JsonObject toJson() {
    JsonObject entries = new JsonObject();
    entries.put("code", code);
    entries.put("result", result);
    entries.put("message", message);
    return entries;
  }
}
